package com.nsgf.library.ui;

import android.content.Context;
import android.content.Intent;

import com.nsgf.library.MainNsgfActivity;
import com.nsgf.library.ui.page.MessageWarningActivity;

public class GotoActivity {

    /**
     * @param context
     * @param type
     */
    public static void gotoMainActivity(Context context, String type) {
        Intent intent = new Intent();
        intent.setClass(context, MainNsgfActivity.class);
        context.startActivity(intent);
    }

    /**
     * 告警
     *
     * @param context
     * @param type    0单水库 1区域水库
     */
    public static void gotoWarningActivity(Context context, String type) {

        Intent intent = new Intent(context, MessageWarningActivity.class);
        intent.putExtra("type", type);
        context.startActivity(intent);
    }


}
